package com.xucan.mapperstruct;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
@Mapper
public interface StudentMapper {
    StudentMapper INSTANCE = Mappers.getMapper(StudentMapper.class);

    @Mapping(source="classInfo", target="classInfoDto")
    StudentDto toDto(Student student, ClassInfo classInfo);
}